package game.classes.particles.displays
{
	import flash.display.Shape;
	
	public class ConvexMirror extends Shape
	{
		private var _color:uint;
		private var _radius:Number;
		
		public function ConvexMirror(color:uint, radius:Number)
		{
			this._color = color;
			this._radius = radius;
			this.draw();
		}
		
		private function draw():void
		{
			this.graphics.beginFill(this._color, 0.65);
			this.graphics.moveTo(0, -this._radius*2);
			this.graphics.curveTo(-this._radius * 0.5, 0, 0, this._radius*2);
			this.graphics.curveTo(this._radius * 0.5, 0, 0, -this._radius*2);
			this.graphics.endFill();
		}
	}
}